import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ThrottleDirective from './directive/throttle';
// 公共函数，库等
import './libs/index';
// 公共样式
import './assets/styles/index.scss';


import request from '@/libs/http/index'
Vue.prototype.$request = request;

// 指令
import {myDirective} from './directive/index';
Vue.use(myDirective);

// 注册 throttle 指令
Vue.directive('throttle', ThrottleDirective);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app');
